import SearchPage from "../pages/SearchPage.vue";
import TeamPage from "../pages/TeamPage.vue";
import Index from "../pages/Index.vue";
import UserPage from "../pages/UserPage.vue";
import UserEditPage from "../pages/UserEditPage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import UserLoginPage from "../pages/UserLoginPage.vue";
import TeamAddPage from "../pages/TeamAddPage.vue";
import TeamUpdatePage from "../pages/TeamUpdatePage.vue";
import TeamMyCreatePage from "../pages/TeamMyCreatePage.vue";
import TeamMyJoinPage from "../pages/TeamMyJoinPage.vue";
import UserRegisterPage from "../pages/UserRegisterPage.vue";
import UserUpdatePage from "../pages/UserUpdatePage.vue";



const routes = [
    {path: '/',title:'主页', component: Index},
    {path: '/team',title:'队伍列表', component: TeamPage},
    {path: '/team/add',title:'创建队伍',component:TeamAddPage},
    {path: '/team/update',title:'更新队伍',component:TeamUpdatePage},
    {path: '/team/my/create',title:'我创建的队伍',component:TeamMyCreatePage},
    {path: '/team/my/join',title:'我加入的队伍',component:TeamMyJoinPage},
    {path: '/user', title:'用户主页',component: UserPage},
    {path: '/search',title:'用户搜索', component: SearchPage},
    {path: '/user/edit', title:'用户编辑',component: UserEditPage},
    {path: '/user/update', title:'用户信息',component: UserUpdatePage},
    {path:'/user/list',title:'用户列表',component:SearchResultPage},
    {path:'/user/login',title:'登录',component:UserLoginPage},
    {path:'/user/register',title:'注册',component:UserRegisterPage},
]


export default routes;